package controller

import (
	"gin-service/lib/GinSrv/GinResp"
	"gin-service/lib/GinSrv/GinRouter"
	"github.com/gin-gonic/gin"
)

func UploadController(router GinRouter.Router) {
	router.InitRouter()
	response := new(GinResp.RespImpl)

	router.Post("/upload", func(context *gin.Context) {
		//file, _ := context.FormFile("file")

		response.DataResp(context, "upload")
	})

	router.Post("/multiUpload", func(context *gin.Context) {
		//form, _ := context.MultipartForm()
		//files := form.File["upload[]"]

		response.DataResp(context, "upload")
	})
}
